:root {
    --primary-color: #0e639c; /* A slightly more vibrant blue */
    --primary-hover-color: #1177bb;
    --text-color: var(--vscode-editor-foreground);
    --background-color: var(--vscode-sideBar-background, var(--vscode-editor-background)); /* Prefer sidebar background */
    --border-color: var(--vscode-editorWidget-border, #333);
    --list-hover-background: var(--vscode-list-hoverBackground);
    --input-background: var(--vscode-input-background);
    --monospace-font: var(--vscode-editor-font-family, 'Menlo', 'Monaco', 'Courier New', monospace);
}

/* Overall Body and Container */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 14px;
}

.container {
    padding: 10px;
    height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 0 10px 10px 10px;
    border-bottom: 1px solid var(--border-color);
}
.header h1 {
    font-size: 18px;
    margin: 0;
}
.header p {
    margin: 5px 0 0;
    font-size: 13px;
    font-family: var(--monospace-font);
}
#branch-sync-status span {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.1);
}
#branch-sync-status .behind {
    background-color: #f0ad4e;
    color: white;
}

/* Tabs */
.tabs {
    display: flex;
    margin: 0;
    padding: 0;
    user-select: none;
}
.tab-button {
    padding: 12px 18px;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--vscode-tab-inactiveForeground);
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    position: relative;
    top: 1px;
}
.tab-button:hover {
    background-color: var(--vscode-tab-hoverBackground);
    color: var(--vscode-tab-activeForeground);
}
.tab-button.active {
    color: var(--vscode-tab-activeForeground);
    border-bottom-color: var(--vscode-tab-activeBorder);
    background-color: var(--vscode-editor-background);
}


/* Content Area */
.tab-content {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--vscode-editor-background);
    border: 1px solid var(--border-color);
    border-top: none;
}

/* Table and List styles */
.file-list, .branch-list {
    width: 100%;
    border-collapse: collapse;
}
.file-list th, .file-list td, .branch-list li {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease-in-out;
}
.file-list th {
    font-weight: 600;
    color: var(--vscode-descriptionForeground);
    font-size: 12px;
    text-transform: uppercase;
}
.file-list td, .branch-list li {
    font-family: var(--monospace-font);
}
.file-list tr:hover, .branch-list li:hover {
    background-color: var(--list-hover-background);
}

.branch-list {
    list-style: none;
    padding: 0;
}
.branch-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* .branch-list li .action-buttons {
    display: none;
} */
/* .branch-list li:hover .action-buttons {
    display: flex;
} */

/* Workspace actions */
.workspace-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
}
.commit-area {
    flex-grow: 1;
}
.commit-area textarea {
    width: 100%;
    height: 100px;
    background-color: var(--input-background);
    color: var(--vscode-input-foreground);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    box-sizing: border-box;
    resize: vertical;
    transition: box-shadow 0.2s;
    font-family: var(--monospace-font);
}
.commit-area textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}
.commit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.commit-tags .tag-button {
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
}

.main-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.main-buttons .icon-button {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    padding: 6px;
    align-self: flex-end;
}
.main-buttons .icon-button svg {
    transition: transform 0.5s ease;
}
.main-buttons .icon-button:hover svg {
    transform: rotate(180deg);
}

/* General button styles */
button {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    background-color: var(--vscode-button-secondaryBackground);
    color: var(--vscode-button-secondaryForeground);
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}
button:hover {
    background-color: var(--vscode-button-secondaryHoverBackground);
    border-color: var(--primary-hover-color);
}
button.primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
button.primary:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
}

td .action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 1em;
    margin-right: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* Revert to UI font for badges */
}
.head-badge {
    background-color: #3b82f6; /* A nice blue */
    color: white;
}
.tag-badge {
    background-color: #ca8a04; /* A nice yellow/orange */
    color: white;
}

#no-changes-message, #no-history-message, #no-stashes-message {
    text-align: center;
    padding: 40px;
    color: var(--vscode-descriptionForeground);
    font-style: italic;
} 